home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / mach / i386 / machine_types.defs < prev    next >
Text File  |  1994-04-05  |  2KB  |  75 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    machine_types.defs,v $
  29.  * Revision 2.2  93/01/14  17:42:03  danner
  30.  *     Created.
  31.  *     [92/08/04            af]
  32.  * 
  33.  */
  34. /*
  35.  *    File:    mach/machine/machine_types.defs
  36.  *    Author:    Alessandro Forin
  37.  *    Date:    7/92
  38.  *
  39.  *    Header file for the basic, machine-dependent data types.
  40.  *    Version for 32 bit architectures.
  41.  *
  42.  */
  43.  
  44. #ifndef    _MACHINE_VM_TYPES_DEFS_
  45. #define    _MACHINE_VM_TYPES_DEFS_    1
  46.  
  47. /*
  48.  * A natural_t is the type for the native
  49.  * integer type, e.g. 32 or 64 or.. whatever
  50.  * register size the machine has.  Unsigned, it is
  51.  * used for entities that might be either
  52.  * unsigned integers or pointers, and for
  53.  * type-casting between the two.
  54.  * For instance, the IPC system represents
  55.  * a port in user space as an integer and
  56.  * in kernel space as a pointer.
  57.  */
  58. type natural_t = unsigned32;
  59.  
  60. /*
  61.  * An integer_t is the signed counterpart
  62.  * of the natural_t type. Both types are
  63.  * only supposed to be used to define
  64.  * other types in a machine-independent
  65.  * way.
  66.  */
  67. type integer_t = int32;
  68.  
  69. /*
  70.  * For the old IPC interface
  71.  */
  72. #define    MSG_TYPE_PORT_NAME    MACH_MSG_TYPE_INTEGER_32
  73.  
  74. #endif    /* _MACHINE_VM_TYPES_DEFS_ */
  75.